﻿using EP.Base.BaseService.Manager.Interface.Business;
using EP.Base.BaseService.Manager.Interface.Common;
using Quartz;

namespace EP.Base.BaseService.Manager.Business.QzJob
{
    public class EsMaintainTaskQzJob : IJob
    {
        /// <summary>
        /// 执行所有任务
        /// </summary>
        /// <param name="context"></param>
        public void Execute(IJobExecutionContext context)
        {
                
                var esMaintainTask = (IEsMaintainTask)context.MergedJobDataMap.Get("IEsMaintainTask");
                var serviceSimplifyLog = (IServiceSimplifyLog)context.MergedJobDataMap.Get("IServiceSimplifyLog");
                serviceSimplifyLog.ExecSl("定时器执行", () => esMaintainTask.ExecCheckAllTask());
        }
    }
}
